# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/rvm/rvm-1.12.ebuild,v 1.4 2007/07/15 02:08:20 mr_bones_ Exp $

inherit git autotools

DESCRIPTION="Recoverable Virtual Memory (used by Coda)"
HOMEPAGE="http://www.coda.cs.cmu.edu/"
#SRC_URI="http://www.coda.cs.cmu.edu/pub/rvm/src/${P}.tar.gz"

EGIT_REPO_URI="git://coda.cs.cmu.edu/project/coda/dev/${PN}.git"

IUSE=""
SLOT="1"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ~x86"

DEPEND="=sys-libs/lwp-9999
	sys-apps/grep
	sys-devel/libtool
	sys-devel/gcc"

RDEPEND="=sys-libs/lwp-9999"

S="${WORKDIR}/${PN}"

pkg_setup(){
	EGIT_BOOTSTRAP="bootstrap.sh"
}

src_compile() {
	econf || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "make install failed"

	dodoc NEWS
}
